package com.jvup.gameshow.activity;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.jvup.gameshow.R;
import com.jvup.common.support.base.BaseActivity;
import com.jvup.common.inject.EventControllerInjector;
import com.jvup.common.inject.ViewModelInjector;
import com.jvup.common.constant.Navigation;
import com.jvup.gameshow.controller.LoginGuideController;
import com.jvup.gameshow.databinding.ActivityLoginGuideBinding;
import com.jvup.gameshow.model.viewModel.impl.LoginGuideViewModel;
import com.qire.antscore.annotation.RouteMapping;
import com.qire.antsrouter.inject.Autowired;

/**
 * 登录引导页
 */
@RouteMapping(path = Navigation.Page.LoginGuidePage)
public class LoginGuideActivity extends BaseActivity<ActivityLoginGuideBinding> {

    @Autowired(injector = ViewModelInjector.class)
    LoginGuideViewModel viewModel;

    @Autowired(injector = EventControllerInjector.class)
    LoginGuideController controller;

    @Override
    public int layoutRid() {
        return R.layout.activity_login_guide;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        controller.setViewModel(viewModel);

        viewModel.initPage(viewDataBinder(),controller);
    }
}
